package com.music.hbox.service.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.music.domain.MusicList;
import com.music.hbox.dao.HboxDao;
import com.music.hbox.service.HboxService;

@Service
public class HboxServiceImpl implements HboxService {
	
	@Autowired
	HboxDao hboxDao;
	
	@Override
	public void addMusic(String userid, String musicid) {
		hboxDao.addMusic(userid,musicid);
	}

	@Override
	public List<MusicList> findAllUserMusic(String userid) {
		return hboxDao.findAllUserMusic(userid);
	}

	@Override
	public void deleteUserMusic(String userid, String musicid) {
		hboxDao.deleteUserMusic(userid,musicid);
	}

	

}
